package com.bwie.service.impl;

import com.bwie.dao.RecordDao;
import com.bwie.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordDao recordDao;

    @Override
    public void addRecord(Integer orderId, Integer userId) {
        recordDao.addRecord(orderId,userId);
    }

    @Override
    public int selectRecord(Integer orderId, Integer userId) {
        return recordDao.selectRecord(orderId,userId);
    }
}
